negotiator.boaframework
Class OutcomeSpace

java.lang.Object
  extended by negotiator.boaframework.OutcomeSpace
Direct Known Subclasses:
SortedOutcomeSpace

public class OutcomeSpace
extends java.lang.Object

This class generates the complete outcome space and is therefore useful if someone wants to quickly implement an agent. Note that while this outcomespace is faster upon initialization, the sorted outcomespace class is faster during the negotiation.

Author:
Alex Dirkzwager, Mark Hendrikx

Constructor Summary
OutcomeSpace(UtilitySpace utilSpace)
          Creates an unsorted outcome space.
 
Method Summary
 void generateAllBids(UtilitySpace utilSpace)
          Generates all the possible bids in the domain
 java.util.List<BidDetails> getAllOutcomes()
           
 BidDetails getBidNearUtility(double utility)
          gets a BidDetails which is closest to the given utility
 java.util.List<BidDetails> getBidsinRange(Range range)
          Returns a list of bids (from possibleBids) that have a utility within the given range.
 int getIndexOfBidNearUtility(double utility)
           
 BidDetails getMaxBidPossible()
           
 BidDetails getMinBidPossible()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutcomeSpace

public OutcomeSpace(UtilitySpace utilSpace)
Creates an unsorted outcome space.

Parameters:
utilSpace -
Method Detail

generateAllBids

public void generateAllBids(UtilitySpace utilSpace)
Generates all the possible bids in the domain

Parameters:
utilSpace -

getAllOutcomes

public java.util.List<BidDetails> getAllOutcomes()
Returns:
list of all possible bids

getBidsinRange

public java.util.List<BidDetails> getBidsinRange(Range range)
Returns a list of bids (from possibleBids) that have a utility within the given range.

Parameters:
range - in which the bids must be found.
Returns:
list of bids which a utility in the given range.

getBidNearUtility

public BidDetails getBidNearUtility(double utility)
gets a BidDetails which is closest to the given utility

Parameters:
utility - to which the found bid must be closest.
Returns:
BidDetails

getMaxBidPossible

public BidDetails getMaxBidPossible()
Returns:
best bid in the domain.

getMinBidPossible

public BidDetails getMinBidPossible()
Returns:
worst bid in the domain.

getIndexOfBidNearUtility

public int getIndexOfBidNearUtility(double utility)
Parameters:
utility - to which the found bid must be closest.
Returns:
index of the bid with the utility closest to the given utilty.